<div class="cartouche">
    <h3>Profil</h3>
    <ul>
    <?r if logged_in? ?>
        <li><b>#{user.login}</b></li>
        <li>#{a 'Profil', UserController.r(:show) }</li>
        <li>#{a 'Personnages', CharacterController.r(:index) }</li>
        <?r if user.status == 'admin' ?>
        	<li>#{a 'Administration', AdminController.r(:index) }</li>
        <?r end ?>
        <li>#{a 'Déconnexion', UserController.r(:logout) }</li>
    <?r else ?>
        <li>#{a 'Enregistrement', UserController.r(:register) }</li>
        <li>#{a 'Connexion', UserController.r(:login) }</li>
    <?r end ?>
</div>

<div class="cartouche">
    <h3>Liens rapides</h3>
    <ul>
    <li>#{a 'Accueil', MainController.r(:index) }</li>
    <li>#{a 'Forums', Forums.r(:list) }</li>
    </ul>
</div>
